package  
{
	/**
	 * 普通常量定义const
	 * @author WLDragon
	 */
	public class Cnt 
	{
		//-------------------------------------------文件对应常量，值和文件名一致
		/**城池*/
		static public const VO_CASTLE:String = "CastleVO";
		/**玩家*/
		static public const VO_PLAYER:String = "PlayerVO";
		/**武将*/
		static public const VO_GENERAL:String = "GeneralVO";
		/**系统*/
		static public const VO_SYSTEM:String = "SystemVO";
		
		/**君主选择配置*/
		static public const XML_MONARCH:String = "monarch";
		/**城池配置*/
		static public const XML_CASTLE:String = "castle";
		/**装备*/
		static public const XML_EQUIP:String = "equip";
		/**菜单*/
		static public const XML_MENU:String = "menu";
		/**计谋*/
		static public const XML_PLOT:String = "plot";
		/**事件*/
		static public const XML_INCIDENT:String = "incident";
		/**算法相关*/
		static public const XML_ALGORITHM:String = "algorithm";
		
		//--------------------------------------------数据解析类型常量
		/**数据类型VO类*/
		static public const DB_TYPE_VO:int = 1;
		/**数据类型XML*/
		static public const DB_TYPE_XML:int = 2;
		/**数据类型地图b文件*/
		static public const DB_TYPE_MAPB:int = 3;
		/**数据类型地图d文件*/
		static public const DB_TYPE_MAPD:int = 4;
		
		//--------------------------------------------当前模式
		/**策略模式*/
		static public const MODE_STRATEGY:int = 1;
		/**策略模式-侦察*/
		static public const MODE_RECONNOITER:int = 2;
		/**行军模式*/
		static public const MODE_MARCH:int = 3;
		/**交战模式*/
		static public const MODE_FIGHT:int = 4;
		/**单挑模式*/
		static public const MODE_SOLO:int = 5;
		
		//---------------------------------------------选择武将状态
		/**内政单人*/
		static public const STATE_1:int = 1;
		/**移动多人(内政)*/
		static public const STATE_2:int = 2;
		/**出征多人*/
		static public const STATE_3:int = 3;
		/**征兵*/
		static public const STATE_4:int = 4;
		/**选择主将单人*/
		static public const STATE_5:int = 5;
		
		//--------------------------------------------行军时的下一步行动
		/**选择活动武将*/
		static public const MARCH_SELECT:int = 1;
		/**使用计谋*/
		static public const MARCH_PLOT:int = 2;
		/**攻击敌军*/
		static public const MARCH_ATTACK:int = 3;
		/**移动*/
		static public const MARCH_MOVE:int = 4;
		/**查看武将资料*/
		static public const MARCH_CHECK:int = 5;
		
		//--------------------------------------------方向
		static public const UP:int = 0;
		static public const DOWN:int = 1;
		static public const LEFT:int = 2;
		static public const RIGHT:int = 3;
		static public const LEFT_UP:int = 4;
		static public const RIGHT_UP:int = 5;
		static public const LEFT_DOWN:int = 6;
		static public const RIGHT_DOWN:int = 7;
		
		//--------------------------------------------军种类型
		static public const ARMY_TYPE:Array = ["山","水","平"];
		//--------------------------------------------城池列表
		static public const ALL_CASTLE:Array = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30"];
		//--------------------------------------------士兵数消耗的粮食
		static public const CONSUME_RICE:Array = [0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 4];
		//--------------------------------------------阵型
		static public const FORMATION_1:Array = [[1,4],[2,0],[2,1],[2,2],[3,3],[3,4],[3,5],[4,6],[4,7],[3,8],[6,8]];
		static public const FORMATION_2:Array = [[1,4],[2,3],[2,5],[3,2],[3,6],[4,1],[4,3],[4,5],[4,7],[5,0],[5,8]];
		static public const FORMATION_3:Array = [[1,4],[2,1],[2,3],[2,5],[2,7],[3,2],[3,4],[3,6],[4,3],[4,5],[5,4]];
		static public const FORMATION_4:Array = [[1,4],[2,3],[2,5],[3,2],[3,4],[3,6],[4,3],[4,5],[5,2],[5,4],[5,6]];
	}

}